package com.ruoyi.system.domain.api;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 兑换记录对象 e_exchange_record
 * 
 * @author ruoyi
 * @date 2022-04-22
 */
public class EExchangeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 兑换用户ID */
    @Excel(name = "兑换用户ID")
    private Long fromUserId;

    /** 兑换币种 */
    @Excel(name = "兑换币种")
    private String coin;

    /** 兑换币种价格 */
    @Excel(name = "兑换币种价格")
    private BigDecimal coinPrice;

    /** 目标币种 */
    @Excel(name = "目标币种")
    private String toCoin;

    /** 目标币种价格 */
    @Excel(name = "目标币种价格")
    private BigDecimal toCoinPrice;

    /** 兑换数量 */
    @Excel(name = "兑换数量")
    private BigDecimal num;

    /** 费率 */
    @Excel(name = "费率")
    private BigDecimal discount;

    /** 到账数量 */
    @Excel(name = "到账数量")
    private BigDecimal incomeNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromUserId(Long fromUserId) 
    {
        this.fromUserId = fromUserId;
    }

    public Long getFromUserId() 
    {
        return fromUserId;
    }
    public void setCoin(String coin) 
    {
        this.coin = coin;
    }

    public String getCoin() 
    {
        return coin;
    }
    public void setCoinPrice(BigDecimal coinPrice) 
    {
        this.coinPrice = coinPrice;
    }

    public BigDecimal getCoinPrice() 
    {
        return coinPrice;
    }
    public void setToCoin(String toCoin) 
    {
        this.toCoin = toCoin;
    }

    public String getToCoin() 
    {
        return toCoin;
    }
    public void setToCoinPrice(BigDecimal toCoinPrice) 
    {
        this.toCoinPrice = toCoinPrice;
    }

    public BigDecimal getToCoinPrice() 
    {
        return toCoinPrice;
    }
    public void setNum(BigDecimal num) 
    {
        this.num = num;
    }

    public BigDecimal getNum() 
    {
        return num;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setIncomeNum(BigDecimal incomeNum) 
    {
        this.incomeNum = incomeNum;
    }

    public BigDecimal getIncomeNum() 
    {
        return incomeNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromUserId", getFromUserId())
            .append("coin", getCoin())
            .append("coinPrice", getCoinPrice())
            .append("toCoin", getToCoin())
            .append("toCoinPrice", getToCoinPrice())
            .append("num", getNum())
            .append("discount", getDiscount())
            .append("incomeNum", getIncomeNum())
            .append("createTime", getCreateTime())
            .toString();
    }
}
